#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class AidedEmployee : Business.BusinessBase<AidedEmployee, int>
	{
		#region Fields and Properties

		private DateTime applyingDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime ApplyingDate
		{
			get { return applyingDate; }
			set
			{
				if (value != applyingDate)
				{
					MarkChanged("ApplyingDate");
					applyingDate = value;
				}
			}
		}

		private Decimal amout = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal Amout
		{
			get { return amout; }
			set
			{
				if (value != amout)
				{
					MarkChanged("Amout");
					amout = value;
				}
			}
		}

		private String resume = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Resume
		{
			get { return resume; }
			set
			{
				if (value != resume)
				{
					MarkChanged("Resume");
					resume = value;
				}
			}
		}

		private Byte isMedicalInsurance = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte IsMedicalInsurance
		{
			get { return isMedicalInsurance; }
			set
			{
				if (value != isMedicalInsurance)
				{
					MarkChanged("IsMedicalInsurance");
					isMedicalInsurance = value;
				}
			}
		}

		private String hUKOUSite = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String HUKOUSite
		{
			get { return hUKOUSite; }
			set
			{
				if (value != hUKOUSite)
				{
					MarkChanged("HUKOUSite");
					hUKOUSite = value;
				}
			}
		}

		private Byte personNbrOfFamily = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte PersonNbrOfFamily
		{
			get { return personNbrOfFamily; }
			set
			{
				if (value != personNbrOfFamily)
				{
					MarkChanged("PersonNbrOfFamily");
					personNbrOfFamily = value;
				}
			}
		}

		private Decimal incomingOfMonth = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal IncomingOfMonth
		{
			get { return incomingOfMonth; }
			set
			{
				if (value != incomingOfMonth)
				{
					MarkChanged("IncomingOfMonth");
					incomingOfMonth = value;
				}
			}
		}

		private Byte isSingleParent = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte IsSingleParent
		{
			get { return isSingleParent; }
			set
			{
				if (value != isSingleParent)
				{
					MarkChanged("IsSingleParent");
					isSingleParent = value;
				}
			}
		}

		private String oZState = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String OZState
		{
			get { return oZState; }
			set
			{
				if (value != oZState)
				{
					MarkChanged("OZState");
					oZState = value;
				}
			}
		}

		private String oZType = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String OZType
		{
			get { return oZType; }
			set
			{
				if (value != oZType)
				{
					MarkChanged("OZType");
					oZType = value;
				}
			}
		}

		private String organization = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Organization
		{
			get { return organization; }
			set
			{
				if (value != organization)
				{
					MarkChanged("Organization");
					organization = value;
				}
			}
		}

		private String address = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Address
		{
			get { return address; }
			set
			{
				if (value != address)
				{
					MarkChanged("Address");
					address = value;
				}
			}
		}

		private String hUKOUtype = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String HUKOUtype
		{
			get { return hUKOUtype; }
			set
			{
				if (value != hUKOUtype)
				{
					MarkChanged("HUKOUtype");
					hUKOUtype = value;
				}
			}
		}

		private Byte isMarried = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte IsMarried
		{
			get { return isMarried; }
			set
			{
				if (value != isMarried)
				{
					MarkChanged("IsMarried");
					isMarried = value;
				}
			}
		}

		private String industry = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Industry
		{
			get { return industry; }
			set
			{
				if (value != industry)
				{
					MarkChanged("Industry");
					industry = value;
				}
			}
		}

		private Byte yearOfWorking = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte YearOfWorking
		{
			get { return yearOfWorking; }
			set
			{
				if (value != yearOfWorking)
				{
					MarkChanged("YearOfWorking");
					yearOfWorking = value;
				}
			}
		}

		private String phone = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Phone
		{
			get { return phone; }
			set
			{
				if (value != phone)
				{
					MarkChanged("Phone");
					phone = value;
				}
			}
		}

		private int postCode = 0;
		/// <summary>
		/// 
		/// </summary>
		public int PostCode
		{
			get { return postCode; }
			set
			{
				if (value != postCode)
				{
					MarkChanged("PostCode");
					postCode = value;
				}
			}
		}

		private Decimal houseArea = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal HouseArea
		{
			get { return houseArea; }
			set
			{
				if (value != houseArea)
				{
					MarkChanged("HouseArea");
					houseArea = value;
				}
			}
		}

		private String houseType = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String HouseType
		{
			get { return houseType; }
			set
			{
				if (value != houseType)
				{
					MarkChanged("HouseType");
					houseType = value;
				}
			}
		}

		private String workingModelType = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String WorkingModelType
		{
			get { return workingModelType; }
			set
			{
				if (value != workingModelType)
				{
					MarkChanged("WorkingModelType");
					workingModelType = value;
				}
			}
		}

		private String identity = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Identity
		{
			get { return identity; }
			set
			{
				if (value != identity)
				{
					MarkChanged("Identity");
					identity = value;
				}
			}
		}

		private Byte disabilityLevel = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte DisabilityLevel
		{
			get { return disabilityLevel; }
			set
			{
				if (value != disabilityLevel)
				{
					MarkChanged("DisabilityLevel");
					disabilityLevel = value;
				}
			}
		}

		private Byte healthState = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte HealthState
		{
			get { return healthState; }
			set
			{
				if (value != healthState)
				{
					MarkChanged("HealthState");
					healthState = value;
				}
			}
		}

		private String iDCardNbr = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String IDCardNbr
		{
			get { return iDCardNbr; }
			set
			{
				if (value != iDCardNbr)
				{
					MarkChanged("IDCardNbr");
					iDCardNbr = value;
				}
			}
		}

		private Byte age = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte Age
		{
			get { return age; }
			set
			{
				if (value != age)
				{
					MarkChanged("Age");
					age = value;
				}
			}
		}

		private DateTime birthdya = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime Birthdya
		{
			get { return birthdya; }
			set
			{
				if (value != birthdya)
				{
					MarkChanged("Birthdya");
					birthdya = value;
				}
			}
		}

		private String policticalExperience = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PolicticalExperience
		{
			get { return policticalExperience; }
			set
			{
				if (value != policticalExperience)
				{
					MarkChanged("PolicticalExperience");
					policticalExperience = value;
				}
			}
		}

		private Byte sex = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte Sex
		{
			get { return sex; }
			set
			{
				if (value != sex)
				{
					MarkChanged("Sex");
					sex = value;
				}
			}
		}

		private String people = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String People
		{
			get { return people; }
			set
			{
				if (value != people)
				{
					MarkChanged("People");
					people = value;
				}
			}
		}

		private String name = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Name
		{
			get { return name; }
			set
			{
				if (value != name)
				{
					MarkChanged("Name");
					name = value;
				}
			}
		}

		private Byte poorLevel = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte PoorLevel
		{
			get { return poorLevel; }
			set
			{
				if (value != poorLevel)
				{
					MarkChanged("PoorLevel");
					poorLevel = value;
				}
			}
		}

		private String employeeCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EmployeeCode
		{
			get { return employeeCode; }
			set
			{
				if (value != employeeCode)
				{
					MarkChanged("EmployeeCode");
					employeeCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public AidedEmployee()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override AidedEmployee DataSelect(int id)
		{
			return Services.DALService.AidedEmployeeService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.AidedEmployeeService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.AidedEmployeeService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.AidedEmployeeService.Delete(this);
		}

		#endregion Base overrides
	}
}
